﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="phong-tro-chi-tiet.ascx.cs" Inherits="UserControl_phong_tro_chi_tiet" %>
<%@ Register Src="~/UserControl/control-fan-facebook.ascx" TagPrefix="uc1" TagName="controlfanfacebook" %>
<%@ Register Src="~/UserControl/phong-tro-tim-kiem-nhanh.ascx" TagPrefix="uc2" TagName="timkiemnhanh" %>
<%@ Register Src="sitemap-breadcrumbs.ascx" TagName="sitemap" TagPrefix="uc3" %>
<uc3:sitemap ID="sitemap1" runat="server" />
<div class="contentRight" style="float: left;">
    <div class="detailsPT">
        <h1><%=strTieuDe %></h1>
        <div class="lst-button-like">
            <div class="like-text">
                LIKE
            </div>
            <div class="lk-btn">
                <%=clsExportHtml.fncLikeButton()%>
            </div>
            <div class="clr">
            </div>
        </div>
        <div class="wrap-btnPT" style="margin-top: 3px;">
            <div class="social-N right">
                <%if (strUs_ID == clsUsers.Users_GetValueCooKie(basConst.COOKIE_USER_ID))
                  { %>
                <span id="btnUpVIP_ptct" class="w8-button red" style="float: left; margin-right: 5px;" href="/Default-Popup.aspx?mo=phong-tro-up-vip&<%=basConst.QR_URL_PTID %>=<%=strID_PT %>">▲ Đưa lên vị trí VIP</span>
                <span id="btnAutoUp_ptct" class="w8-button l-blue" style="float: left;" href="/Default-Popup.aspx?mo=phong-tro-up-tu-dong&<%=basConst.QR_URL_PTID %>=<%=strID_PT %>">▲ Up tin tự động</span>
                <a class="w8-button grey" href="/dang-tin/<%=strID_PT %>" style="padding: 7px 8px 8px 5px !important;">Sửa bài</a>
                <%} %>
            </div>
        </div>

        <div class="tindang-info">
            <div class="wrap-ifPT">
                <div style="width: 30%; float: left;">
                    <div class="detail_personal">
                        <a href="/phong-tro-user/<%=strUs_ID %>"><%=strNguoiDang %></a>
                    </div>
                    <div class="detail_email">
                        <a href="mailto:<%=strEmail%>"><%=strEmail %></a>
                    </div>
                    <div class="detail_phoneDt">
                        <b><%=strShowPhone%></b>
                    </div>
                </div>
                <div style="width: 50%; float: left;">
                    <div class="detail_moneyDt"><b style="color: red;"><%=strGiaPhong %></b></div>
                    <div class="detail_houseDt"><%=strDienTich %>m<sup>2</sup></div>
                    <div class="detail_palce">
                        <a href="/cho-thue-phong-tro/<%=strKV_NameEN%>">[<%=strkv_ten%>]</a> - <%=strDiaChi%>
                    </div>
                </div>
                <div style="width: 20%; float: left;">
                    <div class="detail_eye">Đã xem:  <b><%=strLuotXem %></b></div>
                    <div class="detail_time"><%=strNgayCapNhat%></div>
                    <div class="detail_idItem">Mã tin: <b><%=strID_PT %></b></div>
                </div>
                <div class="clr"></div>
            </div>
        </div>


        <div class="clr"></div>

        <div class="contentPT" style="background-image: url(<%=strBgMoigioi%>);">
            <div style="float:left; margin: 0 10px 5px 0px;">
            <!-- Quang Cao-->
                <%=OsPortal.oFileHelper.ReadFile(basConst.LinkGA_Right)%>
            <!-- End Quang Cao-->
            </div>
            <%=strMotaCT%>

            <%if (iCountImg > 0)
              { %>
            <div id='body'>
                <div id="bigPic">
                    <%=strhtml_imgs%>
                </div>
                <ul id="thumbs">
                    <%=strhtml_imgs_thumb%>
                </ul>
            </div>
            <div id='push'></div>
            <%}%>

            <%if (!String.IsNullOrEmpty(strYoutube))
              {%>
            <center>
                    <iframe width="687" height="400" src="//www.youtube.com/embed/<%=strYoutube%>" frameborder="0" allowfullscreen></iframe>
                 </center>
            <%}%>
        </div>
        <div class="clr"></div>
        <div id="GoogleMap_" class="map">
            <div id="Google_Map" style="width: 692px; height: 300px;"></div>
        </div>
        <div class="clr"></div>
    </div>
    <div class="wrap-likeFacebook">
        <img alt="like nato.vn" src="/Images/System/LIKE.jpg">
        <div class="lst-button-like">
            <div class="like-text">
                LIKE
            </div>
            <div class="lk-btn">
                <%=clsExportHtml.fncLikeButton()%>
            </div>
            <div class="clr">
            </div>
        </div>
        <%=clsExportHtml.fncExportConmentFacebook()%>
    </div>
    <!-- Phòng trọ cùng khu vực -->
    <div class="titleModule">
        <h2 style="margin-left: 5px;">Phòng trọ, nhà trọ cùng khu vực</h2>
    </div>

    <div class="lstPhongTro">
        <!-- <img id="loader" class="loading" alt="" src="/Images/System/loading.gif" style="margin: 10px; text-align: center;" /> -->
        <%=clsExportHtml.fncExportPhongTro(clsPhongTro.PhongTro_FND(1, 20, hd_KhuVuc.Value, 0, 0, "", hd_KieuPhongTro.Value, "",2).Tables[0])%>
    </div>
    <div class="load-more">
        <a href="/<%=hd_KieuPhongTro.Value%>/<%=hd_KhuVuc.Value%>/0/0/2" id="btnLoadMore">► Hiển thị thêm tin ở khu vực <%=hd_KhuVuc.Value%></a>
    </div>
    <!-- End Phòng trọ cùng khu vực -->
    <br />
    <!-- Phòng VIP -->
    <div class="lstPhongTroVIP">
        <%=clsExportHtml.fncExportPhongTro_VIP(clsPhongTro.fncPhongTro_FND_VIP("",clsCommon.fncGetRoute(this.Page, "param1")))%>
    </div>
</div>

<!---------------------------- RIGHT CONTROL ---------------------------->
<div class="contentLeft" style="float: right;">
    <uc2:timkiemnhanh runat="server" ID="timkiemnhanh" />
    <uc1:controlfanfacebook runat="server" ID="controlfanfacebook" />
    <%=OsPortal.oFileHelper.ReadFile(basConst.LinkQuangCao_LEFT) %>
    <%=clsExportHtml.fncExportControlTopNews20(clsPhongTro.PhongTro_FND(1, 20, "", 0, 0, "", "", "",2).Tables[0]) %>
</div>
<!--------------------------- END RIGHT CONTROL ------------------------->
<input id="hdKinhDo" type="hidden" value="<%=strKinhDo%>" />
<input id="hdViDo" type="hidden" value="<%=strViDo%>" />

<input id="hd_KhuVuc" type="hidden" runat="server" />
<input id="hd_KieuPhongTro" type="hidden" runat="server" />

<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false&language=vi"></script>
<script type="text/javascript" src="/Scripts/jquery.lightbox-0.5.js"></script>
<script type="text/javascript">
    var strKhuVuc = $('#<%=hd_KhuVuc.ClientID%>').val();
    var strKieuPhongTro = $('#<%=hd_KieuPhongTro.ClientID%>').val();
</script>
<script src="/Scripts/phong-tro-chi-tiet.js"></script>
